/**
 * @method 转换定制需求变量
 * @param {Object} Custom_Variable
 * @returns {Object}
 */
export default function ConvertCustomVariable(Custom_Variable) {
  // let hospitalCode = process.env.PROXY_ENV_ORGCODE;
  // if (process.env.PROXY_ENV === 'http://192.168.32.183:8383/app-emr-dev'
  //   || process.env.PROXY_ENV === 'http://192.168.32.183:8382/app-emr-dev1'
  //   || process.env.PROXY_ENV === 'http://192.168.32.183:8384/app-emr-release'
  //   || process.env.NODE_ENV === 'development'
  // ) {
  //   hospitalCode = localStorage.getItem('jh_hospitalCode') || hospitalCode;
  // }
  let hospitalCode = "hospitalCode"
  for (let key in Custom_Variable) {
    Custom_Variable[key] = hospitalCode && Custom_Variable[key][hospitalCode]!==undefined ? Custom_Variable[key][hospitalCode] : Custom_Variable[key].default;
  }
  Custom_Variable.currentHospitalCode = hospitalCode;
  return Custom_Variable;
}
